import request from '@/utils/request'

/**
 * 利润
 * @param data
 * @returns {AxiosPromise}
 */
export function countProfit(data) {
  return request({
    url: '/profit/countProfit',
    method: 'post',
    data
  })
}

/**
 * 利润率
 * @param data
 * @returns {AxiosPromise}
 */
export function countProfitRate(data) {
  return request({
    url: '/profit/countProfitRate',
    method: 'post',
    data
  })
}

/**
 * 导出供货商统计
 * @param data
 * @returns {AxiosPromise}
 */
export function exportDataUpFlow(data) {
  return request({
    url: '/uporder/exportDataUpFlow',
    method: 'post',
    data
  })
}

/**
 *
 * @param data
 * @returns {AxiosPromise}
 */
export function findUpFlowCount(data) {
  return request({
    url: '/uporder/findUpFlowCount',
    method: 'post',
    data
  })
}

export function findByUuidProduct(data) {
  return request({
    url: '/upproduct/findByUuidProduct',
    method: 'post',
    data
  })
}

export function findByUuidDownProduct(data) {
  return request({
    url: '/downproduct/findByUuidDownProduct',
    method: 'post',
    data
  })
}

export function getDownFlowCount(data) {
  return request({
    url: '/downrechargeflow/findUpFlowCount',
    method: 'post',
    data
  })
}

/**
 * 下游导出
 * @param data
 * @returns {AxiosPromise}
 */
export function exportDataDown(data) {
  return request({
    url: '/downrechargeflow/exportDataDown',
    method: 'post',
    data
  })
}

/**
 * 分销利润统计
 * @param data
 * @returns {AxiosPromise}
 */
export function countDownProfit(data) {
  return request({
    url: '/profit/countDownProfit',
    method: 'post',
    data
  })
}

/**
 * 三网统计
 * @param data
 * @returns {AxiosPromise}
 */
export function findDownOrderCount(data) {
  return request({
    url: '/downrechargeflow/findDownOrderCount',
    method: 'post',
    data
  })
}






